/*
* @Date: 2021/1/22
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/

export default {
  display: 'inline-block',
  props: [{
    key: 'allowClear',
    type: 'boolean',
    label: '清除',
  }, {
    key: 'autoFocus',
    type: 'boolean',
    label: '自动焦点',
  }, {
    key: 'bordered',
    type: 'boolean',
    label: '边框',
  }, {
    key: 'dateRender',
    type: 'function',
    function: '(currentDate, moment)',
    label: '自定义',
  }, {
    key: 'disabled',
    type: 'boolean',
    label: '禁用',
  }, {
    key: 'disabledDate',
    type: 'function',
    function: '(currentDate)',
    label: '不可选择日期',
  }, {
    key: 'inputReadOnly',
    type: 'boolean',
    label: '只读',
  }, {
    key: 'mode',
    type: 'select',
    options: ['time', 'date', 'month', 'year', 'decade'],
    label: '面板状态',
  }, {
    key: 'open',
    type: 'boolean',
    label: '展开',
  }, {
    key: 'picker',
    type: 'select',
    options: ['date', 'week', 'month', 'quarter', 'year'],
    label: '类型',
  }, {
    key: 'placeholder',
    type: 'string',
    label: '提示词',
  }, {
    key: 'size',
    type: 'select',
    options: ['large', 'middle', 'small'],
    label: '大小',
  }, {
    key: 'suffixIcon',
    type: 'icon',
    label: '图标'
  }, {
    key: 'onOpenChange',
    type: 'function',
    function: '(open)',
    label: '弹窗回调',
  }, {
    key: 'onPanelChange',
    type: 'function',
    function: '(value, mode)',
    label: '切换回调',
  }, {
    key: 'defaultValue',
    type: 'string',
    label: '默认值'
  }, {
    key: 'format',
    type: 'string',
    label: '格式',
  }, {
    key: 'showTime',
    type: 'boolean',
    label: '时间功能',
  }, {
    key: 'value',
    type: 'string',
    label: '日期值',
  }, {
    key: 'onChange',
    type: 'function',
    function: '(date, dateString)',
    label: '变化回调',
  }, {
    key: 'onOk',
    type: 'function',
    function: '()',
    label: '确认回调',
  }]
}
